
<div class='fui-page   fui-page-current member-cart-page'>
    <div class="fui-header">
	<div class="fui-header-left" ng-click="goback()">
	    <a class="back"></a>
	</div>
	<div class="title">我的足迹</div> 
	<div class="fui-header-right">
		<a class="btn-edit" ng-click="toogle(pagedata,'show_edit')" >{{ifelse(pagedata.show_edit,'完成','编辑')}}</a>
	</div>
    </div>

    <div class='fui-content' >

	<div class='content-empty' ng-if="pagedata.list=='' || pagedata.list==null">
	     <i class='icon jinyunicon icon-zuji'></i><br/>您还没有浏览过任何商品，何不现在就去逛逛~<br/><a href="javascript:;" ng-click="access_json('goods.index/')" class='btn btn-default-o external'>去逛逛吧~</a>
	</div>
	<div id="goodslist">
		<div class='fui-list-group container' ng-repeat="g in pagedata.list">
			<div class="fui-list goods-item align-start">
			<div class="fui-list-media" ng-show="pagedata.show_edit">
			   <input type="checkbox" name="checkbox" ng-checked="pagedata.del.indexOf(';'+g.id+';')>=0" ng-click="duoxuans(g.id,pagedata,'del')" class="fui-radio fui-radio-danger edit-item del_history"/>
			</div> 

			<div class="fui-list-media image-media">
				<a ng-click="access_json('/goods.detail//id='+g.goodsid)" >
				<img ng-src="{{tomedia(g.image) || '../core/resource/images/nopic.jpg'}}" class="round">
				</a>
			</div>
			<div class="fui-list-inner">
				<a ng-click="access_json('/goods.detail//id='+g.goodsid)">
				<div class="text">
				  {{g.title}}
				</div>
				</a>
				<div class="text">
				  {{g.createtime}}
				</div>
				 <div class="text"><span class="text-danger">￥{{g.price}}</span> <span class='oldprice' ng-if="g.marketprice>0">￥{{g.marketprice}}</span></div>
			   
			</div>
			</div>
		</div>
	</div>
	  <div id="loading" class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
    </div>
    <div class="fui-footer" ng-show="pagedata.show_edit">
		<div class="fui-list noclick">
			<div class="fui-list-media">
			<label class="checkbox-inline editcheckall"><input type="checkbox" name="checkbox" onclick="var ck = this.checked;$(':checkbox').each(function(){if(this.checked != ck){$(this).click();}});" class="fui-radio fui-radio-danger " />&nbsp;全选</label>
			</div>
			<div class='fui-list-angle'>
			<div class="btn  btn-danger" ng-click="post({},'del','del='+pagedata.del)">删除</div>
			</div>
		</div>
    </div>
</div>
<script>
scope.tool.get_list('jy_weishop/member.history/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/member.history/getlist/');
}
</script>